package com.xrj4j.service;

import com.xrj4j.common.ResponseResult;
import com.xrj4j.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface MessageService extends IService<Message> {

    ResponseResult listMessage(String name);

    ResponseResult deleteMessageById(int id);

    ResponseResult passBatch(List<Integer> ids);

    ResponseResult deleteBatch(List<Integer> ids);


    //    ------web端方法开始-----

    /**
     * 获取所有留言
     */
    ResponseResult selectPublicMessage();

    /**
     * 添加留言
     */
    ResponseResult publicAddMessage(Message message);


}
